From: Roan Kattouw Date: Mon, 13 Dec 2010 16:39:48 +0000 (+0000) Subject: Followup r64047: pass static callbacks in array form, not string form X-Git-Tag: 1.31.0-rc.0~33337 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=d9103b92f5b96a9027471175bdeaa8b9ec2e3a9d;p=lhc%2Fweb%2Fwiklou.git Followup r64047: pass static callbacks in array form, not string form --- diff --git a/includes/revisiondelete/RevisionDeleter.php b/includes/revisiondelete/RevisionDeleter.php index d47fcecf7b..5caba11e71 100644 --- a/includes/revisiondelete/RevisionDeleter.php +++ b/includes/revisiondelete/RevisionDeleter.php @@ -77,7 +77,7 @@ class RevisionDeleter { $msgFunc = $forContent ? "wfMsgForContent" : "wfMsg"; $changes = self::getChanges( $nbitfield, $obitfield ); - array_walk($changes, 'RevisionDeleter::expandMessageArray', $forContent); + array_walk( $changes, array( __CLASS__, 'expandMessageArray' ), $forContent ); $changesText = array(); @@ -98,8 +98,8 @@ class RevisionDeleter { } private static function expandMessageArray(& $msg, $key, $forContent) { - if ( is_array ($msg) ) { - array_walk($msg, 'RevisionDeleter::expandMessageArray', $forContent); + if ( is_array ( $msg ) ) { + array_walk( $msg, array( __CLASS__, 'expandMessageArray' ), $forContent ); } else { if ( $forContent ) { $msg = wfMsgForContent($msg); @@ -267,4 +267,4 @@ class RevisionDeleter { } return ''; } -} \ No newline at end of file +}